package com.cqsw.bbs.mapper;

import com.cqsw.bbs.entity.Like;
import com.cqsw.bbs.entity.Pagination;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LikeMapper {
    int queryLikeCount(@Param("userId") Integer userId, @Param("type") Integer type, @Param("likeObjectId") Integer likeObjectId);

    // 点赞
    int insertLike(@Param("userId") Integer userId, @Param("type") Integer type, @Param("likeObjectId") Integer likeObjectId);
    List<Like> queryMyLike(Pagination pagination);
    int deleteLike(@Param("id") Integer id,@Param("userId") Integer userId);
}